﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Configuration;
using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.WebControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

public partial class admin_search_property_torent : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["email"] == null)
        {
            Session["email"] = "admin";
        }
        Label2.Text = Session["email"].ToString();
        if (Page.IsPostBack)
        {
        }
        else
        {
            //GridView2.Visible = true;
          //  GridView1.Visible = false;
        }
    }
    //protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //   GridView1.Visible = true;
    //}
    //protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
    //{

    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //  GridView1.Visible = true;
    //}
    //protected void DropDownList6_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;

    //}
    //protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //   GridView1.Visible = true;

    //}
    //protected void DropDownList8_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //  GridView1.Visible = true;

    //}
    //protected void DropDownList9_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList10_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //GridView1.Visible = true;
    //}
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect("../admin.aspx");
    }

    
    protected void Button1_Click(object sender, System.EventArgs e)
    {
      int str;
        str =  Convert.ToInt32 (TextBox9 .Text);
        int total = (str + 1000);
        int minus = (str - 1000);
        Label5.Text = Convert.ToString (total);
        Label1.Text = Convert.ToString(minus);
       // Response.Write(total);
       // GridView1.Visible = true;
        //GridView2.Visible = false;
    }

    protected void Button2_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("sell_property.aspx");
    }
}

//protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
//{

//}
